package com.chj.config;

import com.baomidou.mybatisplus.core.incrementer.IdentifierGenerator;
import lombok.extern.slf4j.Slf4j;

//@Slf4j
public class CustomIdGenerator implements IdentifierGenerator {
    @Override
    public Long nextId(Object entity) {
//        log.info("-------------CustomIdGenerator.nextId()-------------->");
        return new IdWorker().nextId();
    }
}
